package com.example.demo.model;/*
 * Copyright © 2020-2035 erupt.xyz All rights reserved.
 * Author: YuePeng (erupts@126.com)
 */

import javax.persistence.*;
import xyz.erupt.annotation.*;
import xyz.erupt.annotation.sub_erupt.*;
import xyz.erupt.annotation.sub_field.*;
import xyz.erupt.annotation.sub_field.sub_edit.*;
import xyz.erupt.upms.model.base.HyperModel;
import xyz.erupt.jpa.model.BaseModel;
import java.util.Set;
import java.util.Date;

@Erupt(name = "课程信息")
@Table(name = "Ricardo_info")
@Entity
public class Ricardo extends BaseModel {

        @EruptField(
                views = @View(
                        title = "课程id"
                ),
                edit = @Edit(
                        title = "课程id",
                        type = EditType.INPUT, search = @Search, notNull = true,
                        inputType = @InputType
                )
        )
        private String course_id;

        @EruptField(
                views = @View(
                        title = "课程名称"
                ),
                edit = @Edit(
                        title = "课程名称",
                        type = EditType.INPUT, search = @Search, notNull = true,
                        inputType = @InputType
                )
        )
        private String course_name;

        @EruptField(
                views = @View(
                        title = "课程日期"
                ),
                edit = @Edit(
                        title = "课程日期",
                        type = EditType.DATE, search = @Search, notNull = true,
                        dateType = @DateType
                )
        )
        private Date course_date;


        public String getCourse_id() {
                return course_id;
        }

        public void setCourse_id(String course_id) {
                this.course_id = course_id;
        }

        public String getCourse_name() {
                return course_name;
        }

        public void setCourse_name(String course_name) {
                this.course_name = course_name;
        }

        public Date getCourse_date() {
                return course_date;
        }

        public void setCourse_date(Date course_date) {
                this.course_date = course_date;
        }
}